<template>
    <div>
        <input type="text" ref="ipt">
    </div>
</template>

<script>
export default {
    mounted() {
        console.log('---->', this.$refs.ipt)
    },
    methods: {
        fn() {
            alert('我是sun')
        }
    }
}
</script>
<style lang="scss" scoped></style>